import {DashboardIcon} from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/inventory',
    component: Layout,
    redirect: '/inventory/store-manage',
    name: 'inventory',
    meta: {
      title: '库存管理',
      icon: 'icon-product-library'
    },
    children: [
      {
        path: 'store-manage',
        name: 'StoreManage',
        component: () => import('@/pages/inventory/store-manage/index.vue'),
        meta: {title: '仓库管理'},
      },
      {
        path: 'store-product',
        name: 'StoreProduct',
        component: () => import('@/pages/inventory/store-product/index.vue'),
        meta: {title: '库产品查询'},
      },
      {
        path: 'store-detail',
        name: 'StoreDetail',
        component: () => import('@/pages/inventory/store-detail/index.vue'),
        meta: {title: '仓库详情', hide: true},
      },
      {
        path: 'warehousing-history',
        name: 'WarehousingHistory',
        component: () => import('@/pages/inventory/warehousing-history/index.vue'),
        meta: {title: '入库记录', hide: true},
      },
      {
        path: 'outbound-history',
        name: 'OutboundHistory',
        component: () => import('@/pages/inventory/outbound-history/index.vue'),
        meta: {title: '出库记录', hide: true},
      },
      {
        path: 'dispatch-history',
        name: 'DispatchHistory',
        component: () => import('@/pages/inventory/dispatch-history/index.vue'),
        meta: {title: '调拨记录', hide: true},
      },
      {
        path: 'product-info',
        name: 'ProductInfo',
        component: () => import('@/pages/inventory/product-info/index.vue'),
        meta: {title: '产品详情', hide: true},
      },
      //{
      //  path: 'order-list',
      //  name: 'WarehouseOrderList',
      //  component: () => import('@/pages/inventory/order-list/index.vue'),
      //  meta: {title: '订单列表', hide: true},
      //},
      //{
      //  path: 'product',
      //  name: 'WarehouseProduct',
      //  component: () => import('@/pages/inventory/product/index.vue'),
      //  meta: {title: '仓库库存', hide: true},
      //},

    ],
  },
];
